<?php

# 基本配置

use plugin\ycMassage\utils\enum\Examine;
use plugin\ycMassage\utils\enum\TechnicianQualifications;

return [
    [
        'name' => 'individual_settlement',
        'title' => '个人入驻',
        'component' => 'switches',
        'value' => 0,
        'extra'         => [
            'prompt' => [
                'text' => "开启后，技师可以通过个人入驻的方式入驻平台。\n关闭后，技师列表将不显示个人入驻的技师、暂停个人技师接单。",
            ],
            'props' => [
                'activeValue' => 1,
                'inactiveValue' => 0,
                'activeText' => '开启',
                'inactiveText' => '关闭',
            ]
        ]
    ],
    [
        'name' => 'qualifications',
        'title' => '从业资格证',
        'component' => 'checkbox',
        'value' => [],
        'extra' => [
            'options' => TechnicianQualifications::getOptions()
        ],
    ],
    [
        'name' => 'comment_examine',
        'title' => '评论审核状态',
        'component' => 'radio',
        'value' => Examine::WAIT['value'],
        'extra'         => [
            'options' => Examine::getOptions()
        ]
    ],
    [
        'name' => 'moments_examine',
        'title' => '动态审核状态',
        'component' => 'radio',
        'value' => Examine::WAIT['value'],
        'extra'         => [
            'options' => Examine::getOptions()
        ]
    ],
    [
        'name' => 'force_realname',
        'title' => '强制实名',
        'component' => 'switches',
        'value' => 0,
        'extra'         => [
            'props' => [
                'activeValue' => 1,
                'inactiveValue' => 0,
                'activeText' => '开启',
                'inactiveText' => '关闭',
            ]
        ]
    ],
    [
        'name' => 'show_qualifications',
        'title' => '是否展示技师资质',
        'component' => 'switches',
        'value' => 0,
        'extra'         => [
            'props' => [
                'activeValue' => 1,
                'inactiveValue' => 0,
                'activeText' => '展示',
                'inactiveText' => '关闭',
            ]
        ]
    ],
    [
        'name' => 'show_age',
        'title' => '是否展示技师年龄',
        'component' => 'switches',
        'value' => 0,
        'extra'         => [
            'props' => [
                'activeValue' => 1,
                'inactiveValue' => 0,
                'activeText' => '展示',
                'inactiveText' => '关闭',
            ]
        ]
    ],
];
